﻿using System;

namespace PgBirdie.Core.Service.Infrastructure
{
    public class TextFormatService : ITextFormatService
    {
        public string RemoveDoubleQuotes(string text)
        {
            return text.Replace("\"", String.Empty);
        }

        public string RemoveCommaOrSemiColonFromTheEnd(string text)
        {
            if (text.EndsWith(",") || text.EndsWith(";"))
                return text.Remove(text.Length - 1, 1);
            return text;
        }
    }
}